package pro.cherish.knowledgeschedule.jdkTimer;

import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;

/**
 * @author 创建人：cherish
 * @version 版本号：V1.0
 * <p>
 * ***************************修订记录************************************
 * 2019-11-05 cherish 创建该类功能。
 * **********************************************************************
 * </p>
 * @ClassName 类名：Demo1
 * @Description 功能说明：
 * <p>
 * TODO
 * </p>
 * **********************************************************************
 * @date 创建日期： 2019-11-05 cherish
 */
public class Demo1 {
    Runnable runnable = new Runnable() {
        @Override
        public void run() {
            // task to run goes here
            System.out.println("Hello !!");
        }
    };
    // ScheduledExecutorService service = Executors.newSingleThreadScheduledExecutor();
    // service.
    // service.scheduleAtFixedRate(runnable,0,1,TimeUnit.SECONDS);
}
